-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix unset request header writer GUID #36
Conversation
This does not seem to be present on |
A good way of reducing the flakiness of the test is adding a delay at the start of the service callback. |
Thanks @fuzzypixelz. Can you clarify why adding a delay can pass the test? If this PR is necessary to add into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides rmw_take_request
, is it also needed in rmw_take_response
?
@YuanYuYuan The delay I referred to is just for making the test fail more consistently. In my tests, if the service is a bit slower then there is a greater chance for This pull request doesn't assume any changes to the test. |
Good catch! |
I see. Then my question is why the original incorrect logic sometimes passes the test. |
I suppose it's because the service/client were so fast that the duplicates never were present in the map at the same time (most of the time). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Okay. Let's merge it. Thanks! |
The
gtest_multithreaded__rmw_zenoh_cpp
test of packagetest_rclcpp
is quite flaky in theZettaScaleLabs:dev/1.0.0
branch. On around 1/10 runs I get:If I add a hacky log statement right before the call to
add_to_query_map
:I get queries with the same
writer_guid
andsequence_number
:Looking at the query attachment at the Zenoh level, I realized that the GUID is correctly propagated, but simply not set in
rmw_take_request
.